.table-container {
  overflow-x: auto;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 10px;
}

.responsive-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-family: 'Arial', sans-serif;
}

.column-header {
  padding: 16px;
  border: 1px solid #dee2e6;
  text-align: center;
  vertical-align: middle;
}

.row-header {
  padding: 12px 16px;
  border: 1px solid #dee2e6;
}

.column-header,
.row-header {
  font-size: 0.98rem;
}

.price-cell {
  padding: 12px;
  border: 1px solid #dee2e6;
  text-align: center;
  vertical-align: middle;
}

.subtext {
  font-size: 0.75em;
  color: #6c757d;
  line-height: 1.3;
}

.price-container {
  align-items: baseline;
  gap: 4px;
}

.price-subtext {
  font-size: 0.75rem;
  color: #6c757d;
}

.recommendation {
  font-size: 0.75rem;
  color: #666;
}

@media (max-width: 768px) {
  .column-header,
  .row-header {
    font-size: 0.9rem;
  }

  .column-header {
    font-size: 0.85rem;
    padding: 12px;
  }

  .row-header {
    padding: 10px 12px;
  }

  .price-cell {
    padding: 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .column-header,
  .row-header {
    font-size: 0.8rem;
  }

  .table-container {
    padding: 0 5px;
  }

  .column-header {
    font-size: 0.8rem;
    padding: 8px;
  }

  .row-header {
    padding: 8px 10px;
  }

  .subtext {
    font-size: 0.8em;
  }

  .price-cell {
    padding: 8px;
    font-size: 0.75rem;
  }

  .price-subtext {
    font-size: 0.65rem;
  }

  .recommendation {
    font-size: 0.65rem;
  }

  .price-subtext {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .table-container {
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .column-header,
  .row-header {
    font-size: 0.7rem;
  }

  .column-header {
    padding: 2px;
  }

  .row-header {
    padding: 2px;
  }

  .subtext {
    font-size: 0.9em;
  }

  .price-cell {
    padding: 2px;
    font-size: 0.7rem;
  }

  .price-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }
}
